package com.java.jvm.loader;
//通过JVM 参数检查类加载过程
//-XX:+TraceClassLoading
class C{
    static {
        System.out.println("1");
    }
    public C(){
        System.out.println("2");
    }
}
class D extends C{
    static{
        System.out.println("a");
    }
    public D(){
        System.out.println("b");
    }
}
public class ClassLoadingPractise02 {
    public static void main(String[] args) {
        C c1=new D();//1a2b
        C c2=new D();//2b
    }
}
